package com.plus.config;

import java.lang.annotation.*;

/**
 * @program: springboot-caffeineCache
 * @ClassName DataSource
 * @description:数据源切换自定义注解
 * @author: 黄涛
 * @create: 2023-11-22 13:59
 * @Version 1.0
 **/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DataSource {
    public DataSourceType value() default DataSourceType.MASTER;
}
